from alg import find_min_arrow_shots
from gen import generate_balloons, generate_test_cases

def test():
   
    test_cases = generate_test_cases()

    random_points = generate_balloons(n=20, min_val=0, max_val=1000)
    print(f"随机生成的{len(random_points)}个气球:")
    for i, point in enumerate(random_points, 1):
        print(f"气球 {i}: {point}")
    
    arrows = find_min_arrow_shots(random_points)
    print(f"\n最少需要的箭数: {arrows}")
    
    


if __name__ == "__main__":
    test()

